package net.vanchu.mortgagecalculator.mortgage.data;

import java.io.Serializable;

/**
 * Created by Granton on 2016/12/22.
 */
public class PrincipalAndInterest implements Serializable {

    private double interest;

    private double principal;

    private double totalRepay;

    public PrincipalAndInterest(double principal, double interest) {
        this.principal = principal;
        this.interest = interest;
        this.totalRepay = interest + principal;
    }

    public double getTotalRepay() {
        return totalRepay;
    }

    public double getInterest() {
        return interest;
    }

    public double getPrincipal() {
        return principal;
    }

}